// var readline = require('readline')
// const rl = readline.createInterface({
//     input: process.stdin,
//     output: process.stdout
// })
// rl.on('line', function (line) {
//     var t = line
//     var tokens = line.split(' ')
//     console.log(parseInt(tokens[0]) + parseInt(tokens[1]));
// })

// 1 5
// 10 20
while (line = readline()) {
    var lines = line.split(' '); //字符串转换为字符数组
    var a = parseInt(lines[0]);
    var b = parseInt(lines[1]);
    print(a + b);
}
// 2
// 1 5
// 10 20
var t = readline();
for (let i = 0; i < t; i++) {
    var lines = readline().split(' ');
    var a = parseInt(lines[0]);
    var b = parseInt(lines[1]);
    print(a + b);
}
